Efficient creation of documents

ABSTRACT

Some embodiments provide a method that efficiently designs a document. The method initially provides the user with a selection of templates, each with a default configuration for content. After the user selects a template, the method provides the user with a selection of page designs to add to the selected template. When the user selects one of the page designs, the method adds the page design to a document that it presents to the user based on the selected template. Some embodiments provide methods for modifying default content of template documents that have several default text fields. When a user selects a default text field, the method of some embodiments selects the entire default text field for immediate editing by the user. In some embodiments, the method highlights a text field selected by the user. Also, in some embodiments, the method deletes the entire default content of the text field when the user provides new content for the selected field. In some embodiments, the new content can be text, image, or other type of content.

CLAIM OF BENEFIT TO PROVISIONAL APPLICATION

This patent application claims the benefit of the earlier filed U.S. Provisional Patent Application entitled “Efficient Creation of Documents,” having Ser. No. 60/651,479, and filed on Jan. 9, 2005.

FIELD OF THE INVENTION

The invention relates to efficient creation of documents.

BACKGROUND OF THE INVENTION

Among the myriad of applications available today, it is still difficult to locate a streamlined, yet powerful word processing application that gives the average user the ability to easily create well-designed documents. On a daily basis, users create documents from a simple letter or invitation to a newsletter or brochure. Users typically compose and design a variety of these documents on a computer. While computers have aided the user, computers have added complication as well with difficult to use tools and unintuitive, unimaginative interfaces. Often current applications hinder users from changing the layout and look of the documents they create because of the rigid format and structure of the templates offered to the user, or the lack of usability of the interface or application itself.

Users often have needs of presenting content in a particular format such as data by using any number of tables or charts. Current applications attempt to incorporate the more specialized content or formatted data into their documents in awkward fashion. Furthermore, current applications have lagged behind the need of users to incorporate a multitude of latest generation text and graphics types, and multimedia-based content such as movies, hyperlinks, and audio. The need and ability to publish documents online has also added new advances and challenges to the average user.

As mentioned, the templates that come with existing applications may not always fit the job. Thus, a user may be required to apply design knowledge or advanced computer skill to create user specific tools such as templates that suit the user's particular needs. However, creating such customized tools may represent a daunting task to even those well versed in the use of the application. Even to those users lucky enough to overcome the obstacles, much time will be spent both on elements of design and computer expertise by many users whose primary job function or interest is neither of these.

One obvious solution to the failings of existing applications and templates is to add more rigid, confined templates that may or may not fit the purpose and design goals of the user. Another solution is to allow the user to start from a plain document or a blank template, without pre-formatting which allows a user to build a needed template. However, building from scratch defeats the purpose of having templates. Therefore, neither of these solutions really offers a complete answer to users attempting to create a variety of documents using the latest content. An improved solution would involve both a large complement of pre-designed templates as well as the ability to further expand and configure these templates for individual tasks.

Thus, there is a need in the art for an application that is better suited to current content and needs of users. There is also a need in the art for a variety of document template types from which to choose. There is a further need in the art for the ability to expand templates. Moreover, there is a need in the art to facilitate user expansion and configuration of templates. For instance, to at least partially meet the needs mentioned above, a user should have the ability to drag or place content (e.g., imported graphics, movies, sound, text boxes, charts, tables, and shapes) onto a page of a multi-page user configurable template.

SUMMARY OF THE INVENTION

Some embodiments provide a method that efficiently designs a document. The method initially provides the user with a selection of templates, each with a default configuration for content. After the user selects a template, the method provides the user with a selection of page designs to add to the selected template. When the user selects one of the page designs, the method adds the page design to a document that it presents to the user based on the selected template.

In some embodiments, the method presents to the user a default document with a set of page designs initially when the user selects the template from the selection of templates. In some embodiments, each template has an associated set of page designs that were specifically designed a priori to match the theme of the template.

Some embodiments provide methods for modifying default content of template documents that have several default text fields. When a user selects a default text field, the method of some embodiments selects the entire default text field for immediate editing by the user. In some embodiments, the method highlights a text field selected by the user. Also, in some embodiments, the method deletes the entire default content of the text field when the user provides new content for the selected field. In some embodiments, the new content can be text, image, or other type of content.

Some embodiments define a template document in terms of several default fields for holding content. Some of these embodiments highlight the different fields on a presented template document as the user drags content over the fields. In some embodiments, several layers form the template document. Instead of, or in conjunction with the highlighting of the fields, some embodiments also highlight the different layers that form the template document as the user drags content over the document. Some embodiments also move and/or change the shape of default fields when a user adds content in the vicinity of the default fields.

BRIEF DESCRIPTION OF THE DRAWINGS

The novel features of the invention are set forth in the appended claims. However, for purpose of explanation, several embodiments of the invention are set forth in the following figures.

FIG. 1 illustrates several user selectable and configurable templates in a menu.

FIG. 2 illustrates a Photo Journal template among the Journal type templates.

FIG. 3 illustrates an example where a user has selected the Newsletters type.

FIG. 4 illustrates a Cover page design of the Design Newsletter template.

FIG. 5 illustrates the entire contents of a field in the page design selected and highlighted with just a single click of a pointing device.

FIG. 6 illustrates a prompt to a user that the image contents of a field are merely a placeholder that is intended to be replaced by the user's own content.

FIG. 7 illustrates a dropdown menu for selection of additional page designs in the Design Newsletter template.

FIG. 8 illustrates selection of a Wide Column with Sidebar page design for insertion after the Cover page design in the Design Newsletter template.

FIG. 9 illustrates the Wide Column with Sidebar page design inserted into the open document after the Cover page design.

FIG. 10 illustrates selection of a Text Page for insertion into the open document.

FIG. 11 illustrates the Text Page inserted into the open document.

FIG. 12 illustrates the inserted page designs, the Cover, the Wide Column with Sidebar, and the Text Page, together in the same open document.

FIG. 13 illustrates a Title Page design of the Photo Journal template.

FIG. 14 illustrates a selection of a Medium Photo Collage page design of the Photo Journal template.

FIG. 15 illustrates a Medium Photo Collage page design added after the Title Page design in the Photo Journal template.

FIG. 16 illustrates a media button and media library for adding content next to a page design currently being viewed for editing.

FIG. 17 illustrates the entire contents of a field containing placeholder text selected by a single click of the pointing device.

FIG. 18 illustrates a user replacing all the selected placeholder text by typing “HELLO WORLD!”

FIG. 19 illustrates a multimedia graphic selected in the media library to replace placeholder text in a field of the page design currently being viewed for editing.

FIG. 20 illustrates the placeholder text contents of the field being replaced with content from the media library by using a single (drag-and-drop) operation.

FIG. 21 illustrates a multimedia graphic selected in the media library to replace a placeholder image in a field of the page design currently being viewed for editing.

FIG. 22 illustrates the placeholder image contents of the field being replaced with content from the media library by using a single (drag-and-drop) operation.

FIG. 23 illustrates an image being dragged from the media library and dropped into a floating layer of a Text Page design.

FIG. 24 illustrates the image being dragged to one region of the floating layer of the page design and the text in the body of the page design wrapping and shifting onto another Text Page design in order that the image not occlude the text.

FIG. 25 illustrates the image being dragged to another region of the floating layer such that text in the body of the page design wraps and shifts in real time to compensate for the movement of the image.

FIG. 26 illustrates a wrap menu through which a user can specify how the body should wrap around the floating layer objects.

FIG. 27 illustrates highlighting the border of a floating layer when a cursor is over the floating layer of a document.

FIG. 28 illustrates highlighting the border of a body when a cursor is over the body of a document.

FIG. 29 illustrates highlighting the border of a field when a cursor is over a field of a document.

FIG. 30 is a process flow for highlighting according to some embodiments of the invention.

FIG. 31 is an object diagram that represents the document shown in FIG. 4.

FIG. 32 is the object diagram with a placeholder object updated to reflect a new image (winter scene) that has replaced a previous image (girls).

FIG. 33 is an object diagram for the three-page document illustrated in FIG. 12.

FIG. 34 illustrates an example of a word processing application having a parser retrieve an XML description of a document that is stored on a disk.

FIG. 35 presents a computer system with which some embodiments of the invention are implemented.

DETAILED DESCRIPTION OF THE INVENTION

In the following detailed description of the invention, numerous details, examples, and embodiments of the invention are set forth and described. However, it will be clear and apparent to one skilled in the art that the invention is not limited to the embodiments set forth and that the invention may be practiced without some of the specific details and examples discussed.

Some embodiments provide a method that efficiently designs a document. The method initially provides the user with a selection of templates, each with a default configuration for content. After the user selects a template, the method provides the user with a selection of page designs to add to the selected template. When the user selects one of the page designs, the method adds the page design to a document that it presents to the user based on the selected template.

In some embodiments, the method presents to the user a default document with a set of page designs initially when the user selects the template from the selection of templates. In some embodiments, each template has an associated set of page designs that were specifically designed a priori to match the theme of the template.

Some embodiments provide methods for modifying default content of template documents that have several default text fields. When a user selects a default text field, the method of some embodiments selects the entire default text field for immediate editing by the user. In some embodiments, the method highlights a text field selected by the user. Also, in some embodiments, the method deletes the entire default content of the text field when the user provides new content for the selected field. In some embodiments, the new content can be text, image, or other type of content.

Some embodiments define a template document in terms of several default fields for holding content. Some of these embodiments highlight the different fields on a presented template document as the user drags content over the fields. In some embodiments, several layers form the template document. Instead of, or in conjunction with the highlighting of the fields, some embodiments also highlight the different layers that form the template document as the user drags content over the document. Some embodiments also move and/or change the shape of default fields when a user adds content in the vicinity of the default fields.

Several more detailed embodiments will now be described. These embodiments are implemented by a word processing application. One of ordinary skill will realize that the invention can be implemented within other applications, such as applications for preparing presentations (e.g., Keynote®, PowerPoint®, etc.).

The description below is divided into three sections. Section I describes selecting and configuring a template document with multiple page designs to quickly create a custom document. Section II describes modifying default content provided in a template document. Section III then describes the software design of a document in some embodiments of the invention.

I. Selecting and Configuring a Template

A. Selecting a Template

The word-processing application of some embodiments allows a user to select a template document from a list of template types. The application then presents the user with one or more template pages, one or more of which have default page designs associated with the selected template. As used herein, a template document or page refers to a document or page created by using a particular template before the addition of any user content.

For the user's convenience, the word processing application groups the preconfigured templates into several template types as shown in FIG. 1. Specifically, FIG. 1 shows a template-selection menu 105 that the application presents to the user when the user starts the application or tries to open a new document through the application. As shown in this figure, the template-selection menu includes two display sections, a template-type display section 110 and a template-preview display section 115.

The template-type display section 110 lists the types of templates provided by the application. For instance, in the example illustrated in FIG. 1, this section illustrates the following selectable template types: All, Blank, Newsletters, Journals, Invitations, Stationary, Resumes, Education, and Marketing template types.

The template-preview display section 115 provides a thumbnail preview of each template that the application provides for the template type that is selected in the template-type window 110. In the example illustrated in FIG. 1, the type selected in the template-type section 110 is the “All” type, which, in some embodiments, includes all the template types. Accordingly, in this example, the template-preview display section 115 provides a thumbnail preview of all the templates provided by the application.

On the other hand, FIG. 2 illustrates an example where a user has selected the Journal template type 210 in the template-type section 110. Hence, in this example, the template-preview display section 215 illustrates thumbnail previews of each journal template provided by the application. These templates include Travel, Photo, and Daily Journal templates.

Similarly, FIG. 3 illustrates an example where a user has selected the Newsletters type 310. In this example, the template preview section 115 illustrates thumbnail previews of each newsletter template provided by the application. These templates include Family, Education, Club, Financial, Design, and Non-Profit newsletter templates. In the examples described above, each thumbnail preview in the preview section 115 is a preview illustration of a first page design for each template available in the menu 105.

B. Viewing Template Document and Adding Template Pages

When a user selects one template from the preview section 115, the application presents to the user a template document based on the selected template. For instance, FIG. 4 illustrates the presentation of a page 405 based on the Design Newsletter template 315 (previewed in FIG. 3). The application would display this page to the user when the user selects the Design Newsletter template 315 in the template-preview section 115. For some templates, the application presents a template document with only one page, while for other templates the application presents a template document with several pages. Each template page that the application presents to the user has a default page design that is associated with the selected template.

Also, in some embodiments, each template page has one or more content fields that are populated by default placeholder content that can be quickly removed and/or edited by the user, as further described below in Section II. These fields typically contain default content that suggests to the user the expected appearance of the user's own content. For instance, the page 405 shown in FIG. 4 is based on the Cover page design of the Design Newsletter template. As shown in FIG. 4, a first field 410 in the center of the page 405 contains default content in the form of placeholder text. The default content generally conveys to the user the font and formatting that is used in the field 410. In addition, when highlighted, the placeholder text of the first field 410 delineates the border of the first field 410 from the surrounding template page 405 and other fields (e.g., a second field 415), as shown in FIG. 5.

In some embodiments, placeholder text is in Latin to distinguish the placeholder text from the user's own content. However, any number of languages, symbols, or other distinguishing content could be used as a placeholder in the first field 410. In addition to text, the default content of a template page might include other placeholder content, such as images, graphics, colors, sounds, video, etc. For instance, FIG. 6 shows an image occupying a field 615 in the upper right portion of the template page 605. As shown in this figure, when the cursor is placed over such a field 615, the user is prompted by a message 620 stating that the contents of the field merely represent a placeholder for the user's own content.

Once the application presents a template document to the user, the user can get a list of other page designs that the user can use to add other template pages to the template document. This list is accessible to the user in a variety of ways. One way is through the menu options on top of the application's window. Another way is through a “Pages” icon 425 illustrated in FIG. 4. When the user selects this icon 425, a dropdown menu 705 appears to list several additional page designs that may be added to the template document currently open for editing, as shown in FIG. 7.

When the Design Newsletter template 315 is selected, the application creates a template document and specifies the first page of that document to have the first page design of the selected template 315, as shown in FIG. 4. As shown in the dropdown menu 705 in FIG. 7, the first page illustrated in FIG. 4 is the “Cover” page design 710 of the Design Newsletter template. The dropdown menu 705 also identifies the following page designs for the Design Newsletter template: 3 Column with Sidebar, Wide Column with Sidebar, Table & 3 Column, Table & Wide Column, Text Page, Back Page, and Mailer.

The user may select one or more of the additional page designs from the dropdown menu 705 to custom configure the current template document created by using the Design Newsletter template. For instance, FIG. 8 shows the selection of the Wide Column with Sidebar page design 810. FIG. 9 illustrates the subsequent addition to the newsletter template document of a page 2 with the page design 810. As shown in FIG. 9, once the additional template page is inserted into the current template document, some embodiments display the most recently added page 910. Also, in some embodiments, the addition of a template page to a template document inserts the newly added template page after the template page currently in view. In this case, the page 2 is added after the default cover page of this template, which the application initially added to the document.

To further illustrate the current example, insertion of an additional template page to the current template document will be described. The result is a three-page template document. However, one of ordinary skill will recognize the many permutations of page design combinations possible for each template document.

FIG. 10 shows the Text Page design 1020 selected for insertion after the Wide Column with Sidebar page design 1010. FIG. 11 then shows the newly added template page 1120, which is based on the Text Page design 1020, inserted after the previously added template page, which was based on the Wide Column with Sidebar page design. As shown in FIG. 12, the result is a three-page template document that includes three template pages with, respectively, a cover page 405, a wide-column-with-sidebar page 1010, and a text page 1120.

FIGS. 13, 14, and 15 provide another example of adding template pages to a template document. In the example shown in FIG. 2, the Journals templates 210 are chosen for display in the menu 205. When the Photo Journal template 220 is selected from the menu 205, the application creates a template document and specifies the first page of that document to have the first page design of the selected template 210, as shown in FIG. 13. As shown in the dropdown menu 1305 in FIG. 13, the first page design 1310 in the Photo Journal template is the Title Page design.

As mentioned above, each template has multiple different user selectable page designs that conveniently can replace or supplement the default page design(s) presented to the user in the default template document. For instance, the dropdown menu 1305 in FIG. 13 identifies the following page designs for the Photo Journal template: Title Page, Large Photo Collage, Medium Photo Collage, Small Photo Collage, and Text Page designs.

A user may assemble various permutations of these page designs in the presented template document to create a custom template document. For instance, FIG. 14 illustrates the selection of the Medium Photo Collage page design 1405. FIG. 15 illustrates the subsequent addition to the Photo Journal template document of a page 2 with the page design 1405. The newly added page 2 is inserted after the Title Page within the Photo Journal template document. Template pages may also be moved within a template document and removed from the template document in similar fashion.

In sum, the application allows a user to create a template document and add or delete one or more template pages that are based on one or more page designs, in order to create a desired template configuration. The page designs that are specified for a template are designed to match the theme of the template. In some embodiments, the selectable page designs are not only pre-designed, but may also have pre-specified formatting rules for automatic formatting of content. The pre-designed content and formatting aids a user who may have little knowledge of design principles or computer programming in quickly turning various content into aesthetically pleasing page designs.

Some embodiments allow the user to modify the preconfiguration of both existing and new templates and page designs in order to create custom user defined templates and page designs. These embodiments use a master page model that has three master pages (first, even, and odd master pages). A user can modify the page masters to create custom templates. The user in these embodiments may further create custom page design masters for the newly created custom templates.

II. Adding and Removing Content

Once a template and page design(s) are selected to create a template document, the invention allows the user to easily modify the default content provided by the application, in order to quickly create a personalized user document. The user can modify the template document by adding new content, changing or deleting default content, importing or dragging existing content, etc. Content includes text, image, graphics, animation, video, audio, etc.

The invention's word processing application allows the user to select existing content and add this content to a page of the document through a variety of known manners in the art. For instance, the content can be selected from a menu within the application, from a file, from another application, etc., and it can be added to a page through a cut-and-paste operation, a drag-and-drop operation, etc.

The invention's application also provides unique ways for importing existing content into a document. Specifically, as illustrated in FIG. 16, the application includes a media button 1605 for accessing a library 1610 of media (i.e., content) on the computer. As shown in this figure, the media library 1610 allows a user to access content from a variety of files external to the page 405 of a document being edited. For instance, in some embodiments, these external files might include iTunes®, iPhoto®, and Movie (e.g. Quicktime®, etc.) files. More generally, the media button 1605 may be used to access a variety of content from a spectrum of media such as TIFF, GIF, JPEG, PDF, PSD, EPS, PICT, MOV, FLASH, MP3, MP4, AIFF, AAC, etc. Since content can be exchanged (i.e., moved to and from the media library 1610), some embodiments further allow easy building or augmentation of the media library 1610.

A. Replacing Placeholder Text with Text

Template pages are preconfigured with fields and placeholder content within the fields to suggest to a user a design format for the user to quickly add new content, which will supplement or replace existing content. The result is quick creation of attractive pages containing the user's own content.

1. Click Select Field

To facilitate the user's selection of a text field, some embodiments select the entire text field when the user selects any part of the field (e.g., clicks on a word in the text field). These embodiments select the placeholder text in its entirety to simplify the replacement of this text. Also, some of these embodiments highlight the entire field (e.g., in yellow) to reflect the selection of the field in its entirety.

For instance, FIG. 17 illustrates a user selecting a field 1710 that contains default placeholder text in the text page 1705, which is based on a Text Page design of the Design Newsletter template previously described. As shown in this figure, the entire contents of the field 1710 (i.e., all the default placeholder text) are selected with a single click. Then, as shown in FIG. 18, the user has typed “HELLO WORLD!” to replace the default placeholder text that was selected in FIG. 17. In this example, the default placeholder text is replaced by the user typed text. However, one of ordinary skill in the art will recognize that the default placeholder text might be replaced through a variety of methods such as a drag-and-drop or a cut-and-paste operation.

2. Paragraph Character Revealed

In some embodiments, a drag or select operation in a field reveals the underlying formatting of the content within the field. This underlying formatting might include hidden characters such as a paragraph character (e.g., a paragraph character between in line text). This feature is particularly useful for a user, while modifying the content of a field, to quickly understand the relationship between the in line content in the field. For instance, paragraphs may need to be removed or added to enhance the view of content within the field.

FIG. 17 shows a page 1705 with a field 1710 currently selected for editing. In FIG. 17, the entire contents of the field 1710 are highlighted and the default placeholder text in the field 1710 reveals such formatting (e.g., hidden paragraph character 1725). FIG. 18 shows a paragraph character 1825 that is revealed after the selection of a portion of the text that the user added. In some embodiments, these hidden characters are displayed in blue to offset the yellow color used to highlight text in these embodiments.

B. Replacing Placeholder Text with Multimedia

Just as text can replace text, so can non-text content replace text content and vice versa. For instance, FIGS. 19-20 illustrate an example of an image replacing placeholder text in a field. In FIG. 19, an image 1910 is selected and dragged across the page 1905. This image 1910 is then dropped onto a field 1920, which contains a large amount of text. As shown in FIG. 20, this single (drag-and-drop) operation has replaced the entire volume of text in the field 1920 with the image 1910. As shown in this figure, the field 1920 has been automatically reformatted to account for the size and dimensional characteristics of the inserted image 1910. In other embodiments, the placed content is formatted and/or reformatted to adjust to the characteristics of the field instead.

C. Replacing Placeholder Image with Image

FIGS. 21 and 22 illustrate easy drag and drop replacement of a suggested placeholder image with a user specified image from the media library. FIG. 21 illustrates the dragging of a thumbnail copy 2125 of an image 2110 in the media library 2115 to a field 2120 that displays a default image in a page. FIG. 22 then illustrates the content of the field 2220 replaced with the image 2210. Thus, some embodiments provide the ability to place and replace suggested content in a convenient one-step manner.

D. Existing Content on a Page Wrapping Around Newly Added Content: Floating Layer

To allow a user to add content to a document without deleting existing content previously added or defined for the document, some embodiments allow the existing content to wrap around the newly added content. To explain this wrapping functionality, a brief description of how a document is defined is first provided below.

1. Body and Floating Layer

Some embodiments define a document by reference to body and floating layers. Content can be defined on both of these layers. Content in the body layer is placed “in line” (i.e., two pieces of content cannot overlap in the body layer) in some embodiments. In contrast, content within the floating layer can overlap with other content within the floating layer. In other words, content in the floating layer may occlude other content in this layer. Consequently, in these embodiments, adding new content or dragging existing content within the floating layer may result in overlapped content.

Content in the floating layer is not affected by content in the body of the document. Content in either the floating or body layer can be replaced with new content without affecting content in the other layer. For instance, in FIG. 4, the image 415 of the children and the box 420 are part of the floating layer while the text field 410 is part of the body layer. As shown in FIGS. 19 and 20, the replacement of the default text content in the body layer with the new image only moves the box 420 and has no effect on the image 415 in the floating layer. Similarly, as shown in FIGS. 21 and 22, the replacement of the default image 415 with the new image has no effect on the text field 410 and the box 420.

2. Content Wrapping in Real Time

On the other hand, the body layer and contents within it might move around when content is added to the floating layer that does not replace other content in the floating layer, or existing content on the floating layer is moved around such that it now occupies locations previously assigned to the body layer. For instance, FIG. 23 illustrates an image 2310 being dropped into the floating layer of a page 2300 with a Text Page design 2305. As shown in this figure, some embodiments allow easy access to the floating layer 2330 of a document through a drag-and-drop operation on a border 2330 of the page 2300.

FIG. 24 illustrates that when the image 2310 is dropped on the page 2300 close to its border 2330, the body layer text on this page 2300 wraps around it. FIG. 25 illustrates that the wrapping around of this text changes as the image 2310 is dragged around on the page. In some embodiments, wrapping is performed by adjusting the margins of the fields in the body when floating layer objects (i.e., content in the floating layer) are introduced into space previously assigned to these fields. In other embodiments, wrapping is performed by adjusting the margins of the body. Yet, other embodiments adjust the margins of the body and fields within the body.

Some embodiments further provide a user interface and tools for a user to configure the wrapping of content in a page design. In these embodiments, the tools for configuring the automated wrapping may be accessed by a wrap button 2435. When this button is selected, a dropdown menu 2605 opens up, as shown in FIG. 26. Through this menu 2605, the user can specify how the body should wrap around the floating layer objects. Specifically, as shown in FIG. 26, the menu 2605 illustrates a preview of several selections of possible wrapping styles. The preview of each wrapping style includes a representation of text and a representation of an image. The relationship between these two representations in each preview illustrates the wrapping style of the selection. For instance, the preview of the top selection in FIG. 26 illustrates text wrapping on the top, bottom, and left sides of the image, while the preview of the last selection in FIG. 26 illustrates text wrapping on only the top and bottom sides of the image.

As further shown in FIG. 25, the content in the previous example, and the wrapping in particular, are updated in real time in page design 2300 as the image 2310 is dragged around the page design 2505. Also shown in this figure, the content in the body of the page of the document may be automatically shifted to a new page 2515 in order to preserve the aesthetic view of the content. In some embodiments, the new page 2515 may carry over the formatting of the previous page 2300.

Some embodiments employ the wrapping functionality in order to maintain the readability of content in the body of a document as content is added and manipulated (e.g., moved, formatted, or removed). This feature is particularly useful for maintaining the view and aesthetics of in-line formatted content in the body of a document as content is added and manipulated in the floating layer. In some embodiments, wrapping is performed by adjusting the margins surrounding one object of content based on a border of another object.

3. Easy Access to the Floating Layer

The embodiments described above also provide an easy method of accessing the floating layer of a document. Users of other applications need to enter several menu choices and perform several clicks of the pointing device to access the floating layer of a document. Thus, manipulating content in the floating layer was a much more difficult proposition. The access and manipulation were so unintuitive that many users avoided accessing the floating layer of documents or were unaware of its existence and usability altogether. One way that the invention assists the user in identifying the floating layer is through highlighting, which will now be described.

E. Highlighting

In order to aid a user in modifying content in the page, some embodiments provide visual cues in the form of highlighting the current element of the page being modified. This feature is particularly useful in aiding a user to distinguish the fields, body, and floating layer of the document being modified. For instance, FIGS. 27-29 show highlighting of the three elements of a document described above when each element is active for editing. These figures include a cursor, a document, a floating layer, a body, and a field in the document. Highlighting is illustrated in these figures by bold dashed lines.

FIGS. 27-29 will be described by reference to a highlighting process 3000 shown in FIG. 30. The process 3000 begins by checking at 3005 whether a pointing device cursor (cursor) is over the page. In some embodiments, the checking is performed by a hit detect mechanism which polls the location coordinates under the cursor. Checking may occur only under certain conditions for some embodiments. For instance, checking may only occur when content is being dragged in some embodiments. In these embodiments, if checking occurs and if the cursor is not over a page of a document in the user interface then the process ends.

If the cursor is over a page, then the process checks at 3010 whether the cursor is over the body of the page. In some embodiments, a rectangular region within the page represents the body of the page. If the cursor is not over the body of the page, then the process highlights at step 3015 the border of the page to indicate that the floating layer is currently active or selected within the page, and then ends. In some embodiments, the process repeats so long as a condition is met such as a drag operation is being performed. FIG. 27 illustrates highlighting of a floating layer 2730 of a document 2700 when a cursor 2710 is over the floating layer 2730.

If the cursor is over the body, then the process checks at step 3020 whether the cursor is over a field. If the cursor is not over a field, then the process highlights the body at step 3025 to indicate the body is currently active within the page, and then ends. FIG. 28 illustrates highlighting of a body 2815 of a document 2800 when a cursor 2810 is over the body 2815.

If the cursor is over a field, the process highlights at step 3030 the field to indicate that the particular field is currently active within the page, and then ends. FIG. 29 illustrates highlighting of a field 2920 in a document 2900 when a cursor 2910 is over the field 2920. In some embodiments, the field highlight takes on a number of shapes that may represent an outline of the contents of the particular field.

III. Software Architecture

A. Object Diagram

Some embodiments implement the elements of a document described above as objects in an object-oriented software environment. FIG. 31 illustrates an object diagram 3100 for these embodiments. For instance, the object diagram 3100 represents the document shown in FIG. 4. The object diagram 3100 includes a document object 3105 that is associated with a body object 3110 and one or more pages objects 3145. Thus, content for the document 3105 may be associated with the body 3110 and/or the pages 3145.

Some embodiments define one page object for each page in a document. Thus, the pages 3145 include a page 3150, which corresponds to the single page 405 shown in FIG. 4. However, one of ordinary skill will recognize that the document 3105 might have any number of associated pages, in other embodiments.

Content in the body 3110 of some embodiments is divided into sections 3115. These sections 3115 can be used to associate content in the body to the pages 3145. For instance, the sections 3115 include a section 3120. In the embodiment shown in FIG. 31, the section 3120 is associated to the page 3150 in the document 3105. In some embodiments, the association between sections and pages can specify a one-to-one relationship. However, one of ordinary skill will recognize that in other embodiments the relationship between sections and pages could specify a ratio other than one-to-one. One of ordinary skill will also recognize that the body might have any number of associated sections in other embodiments.

Thus, content for the document 3105 may be associated, through the sections 3115, to the body 3110 and/or to the pages 3150. Some embodiments define an object for each field that can contain content in the body or the page. For instance, section 3120 has a variety of associated content objects that include placeholder objects 3125, 3130, and 3135, and a media object 3140. The placeholder objects 3125-40 are text objects, while the media object 3140 specifies an image of a blue rectangle, in the embodiment shown in FIG. 31.

The page 3150 also has a variety of associated content objects that include text objects 3160, 3165, 3180, a placeholder object 3170, and a media object 3175. In this embodiment, the text objects 3160, 3165, and 3180 specify text boxes, the placeholder object 3170 includes an image, and the media object 3175 specifies a yellow rectangle. However, in contrast to the objects associated to the body 3110, objects associated to the pages 3150 are floating objects 3155. As described in the previous section, the floating objects 3155 exist in the pages 3150 independent of objects in the body 3110 and independent of other objects in the pages 3150. In some embodiments, this feature of the floating objects 3155 is specified in a description of the floating objects 3155. In contrast, objects in the body 3110 typically have a relationship to other objects in the body 3110, such as a sequential or in-line relationship, in some embodiments. Thus, the content objects in FIG. 31 can be used to represent the content and fields described in relation to FIG. 4.

As described in Section II, the document 3105 may be edited. For instance, FIGS. 21-22 illustrate the replacement of a placeholder image. The replacement of the placeholder image in FIGS. 21-22 will now be described by reference to FIGS. 31-32. As described above, the page 3150 has the placeholder object 3170 that includes an image (girls). FIG. 32 is the object diagram 3200 with the placeholder object 3270 updated to reflect a new image (winter scene) that has replaced the previous image (girls).

Also described in Section II, the document 3105 may be edited by the insertion of additional page designs. For instance, FIGS. 7-12 illustrate the insertion of two additional page designs after the Cover page design by using the Design Newsletter template to create a three-page template document. FIG. 33 is an object diagram 3300 for such a three-page document. The object diagram 3300 includes a document 3305 with associated pages 3355, 3360, 3365, and a body 3310. The body 3310 includes three sections 3335, 3340, 3345 that are associated to the three pages 3355, 3360, 3365, respectively. Each of these sections has various associated content objects (e.g., placeholder objects 3335, 3340, 3345).

The pages 3350 have various associated floating objects. For instance, a page 3365 has associated floating objects 3370. The floating objects 3370 include a text object 3375, a media object 3380, and a placeholder object 3385. In the embodiment shown in FIG. 33, the text object 3375 is a text box, the media object 3380 is a rectangle, and the placeholder object 3385 has an image. One of ordinary skill will recognize that these objects are merely representative. For instance, the text object 3375 may include content having various formats such as a table, or a chart. Similarly, the media object 3380 may contain various media such as an image, a sound, or a video. The placeholder object 3385 may also contain a variety of forms of content.

Thus, the FIG. 33 may be used to represent the content for the document having three page designs shown in FIG. 12. However, certain content objects related to the three-page document shown in FIG. 12 have been omitted in FIG. 33, for clarity in the description of FIG. 33.

B. File Formats

Some embodiments use description files to store a description of the objects discussed above. These embodiments may use any number of formats for description files such as the extensible markup language (XML) format. For instance, when a document is created, edited, or simply opened, some embodiments use an object representation (like the ones illustrated in FIGS. 31-33) for the document. On the other hand, when the document is closed, these embodiments convert the object representation to a description file (e.g., XML) representation.

FIG. 34 illustrates one example of such an approach. Specifically, this figure illustrates the word processing application 3405 having a parser 3410 retrieve an XML description 3420 of a document that is stored on a disk 3415. As shown in this figure, the parser provides the object representation 3425 of the document to the application 3405. When the application 3405 closes the document, the application 3405 directs the parser 3410 to convert the object representation 3425 back to the XML representation.

One advantage of using description files, particularly in the XML format, is the ability to export a document that has been created by using the methods described above to other applications. These other applications might include, for example, word processing, presentation, or other document creation applications that are provided by Apple Computer, Inc., Microsoft, Inc., Adobe, Inc., etc. FIG. 34 illustrates this advantage. Specifically, this figure illustrates a second parser 3430 that opens the XML representation 3420 of the document for a second application 3435.

FIG. 35 illustrates a computer system with which some embodiments of the invention are implemented. Computer system 3500 includes a bus 3505, a processor 3510, a system memory 3515, a read-only memory 3520, a permanent storage device 3525, input devices 3530, and output devices 3535.

The bus 3505 collectively represents all system, peripheral, and chipset buses that communicatively connect the numerous internal devices of the computer system 3500. For instance, the bus 3505 communicatively connects the processor 3510 with the read-only memory 3520, the system memory 3515, and the permanent storage device 3525.

From these various memory units, the processor 3510 retrieves instructions to execute and data to process in order to execute the processes of the invention. The read-only-memory (ROM) 3520 stores static data and instructions that are needed by the processor 3510 and other modules of the computer system.

The permanent storage device 3525, on the other hand, is a read-and-write memory device. This device is a non-volatile memory unit that stores instructions and data even when the computer system 3500 is off. Some embodiments of the invention use a mass-storage device (such as a magnetic or optical disk and its corresponding disk drive) as the permanent storage device 3525.

Other embodiments use a removable storage device (such as a floppy disk or ZIP® disk, and its corresponding disk drive) as the permanent storage device. Like the permanent storage device 3525, the system memory 3515 is a read-and-write memory device. However, unlike storage device 3525, the system memory is a volatile read-and-write memory, such a random access memory. The system memory stores some of the instructions and data that the processor needs at runtime. In some embodiments, the invention's processes are stored in the system memory 3515, the permanent storage device 3525, and/or the read-only memory 3520.

The bus 3505 also connects to the input and output devices 3530 and 3535. The input devices enable the user to communicate information and select commands to the computer system. The input devices 3530 include alphanumeric keyboards and pointing devices. The output devices 3535 display images generated by the computer system. For instance, these devices display a graphical user interface. The output devices include printers and display devices, such as cathode ray tubes (CRT) or liquid crystal displays (LCD).

Finally, as shown in FIG. 35, bus 3505 also couples computer 3500 to a network 3565 through a network adapter (not shown). In this manner, the computer can be a part of a network of computers (such as a local area network (“LAN”), a wide area network (“WAN”), or an Intranet, or a network of networks, such as the interne. For example, the computer 3500 may be coupled to a web server (network 3565) so that a web browser executing on the computer 3500 can interact with the web server as a user interacts with a graphical user interface that operates in the web browser.

Any or all components of computer system 3500 may be used in conjunction with the invention. However, one of ordinary skill in the art would appreciate that any other system configuration may also be used in conjunction with the present invention.

The invention provides users with the ability to quickly create complex documents by providing them with numerous templates that can be custom configured to suit the users' particular needs. In addition, the invention provides an intuitive set of tools to allow the user to custom configure the templates. Moreover, the invention provides numerous visual cues that simplify the process of editing a template.

As mentioned above, some embodiments use description files to store descriptions of the elements (e.g., page designs, fields, content, etc.) of the templates and documents described above. These embodiments might use any number of formats such as a Document-Type-Definition (DTD) format or a Schema format. The Schema format of some embodiments will be shown in greater detail below.

While the invention has been described with reference to numerous specific details, one of ordinary skill in the art will recognize that the invention can be embodied in other specific forms without departing from the spirit of the invention. Thus, one of ordinary skill in the art would understand that the invention is not to be limited by the foregoing illustrative details, but rather is to be defined by the appended claims. 

1. A method for placing content in a document created based on a template comprising a plurality of template pages, the method comprising: receiving a selection of a template page comprising (i) a body layer for holding in-line content and (ii) a floating layer for holding floating content that is moveable to a location of the in-line content so that the in-line content at the location re-arranges around the floating content; adding the template page to the document as a new page for the already-existing document, wherein the added template page comprises a placeholder in-line content in the body layer and a placeholder floating content in the floating layer; in response to a first drag-and-drop operation that drags a first content and drops the first content over the body layer, replacing the placeholder in-line content with the first content; and in response to a second drag-and-drop operation that drags a second content and drops the second content over the floating layer, replacing the placeholder floating content with the second content.
 2. The method of claim 1, wherein said first content comprises one of text and multimedia.
 3. The method of claim 2 further comprising replacing text content in a field in the first layer with multimedia content, wherein the field is automatically reformatted to account for a size and dimensional characteristic of said multimedia content.
 4. The method of claim 1, wherein said second content comprises one of a text box and multimedia.
 5. The method of claim 1, wherein the replacement of said placeholder floating content with said second content causes said first content to automatically reconfigure.
 6. The method of claim 5, wherein said automatic content reconfiguration comprises wrapping the first content around said second content.
 7. The method of claim 6, wherein said wrapping is performed by adjusting a margin of a field in said body layer.
 8. The method of claim 6, wherein said wrapping is performed by adjusting a margin of said body layer.
 9. The method of claim 6, wherein said wrapping is performed by adjusting a margin of said body layer and adjusting a margin of a field in said body layer.
 10. The method of claim 6 further comprising: displaying an icon for configuring said automatic wrapping; displaying a preview of a set of selections of possible wrapping styles in response to receiving a selection of said icon; and receiving a selection of a wrapping style for said automatic wrapping.
 11. The method of claim 10, wherein said possible wrapping styles comprises text content wrapping on top, bottom, and left sides of an image.
 12. The method of claim 10, wherein said possible wrapping styles comprises text content wrapping on top and bottom sides of an image.
 13. The method of claim 10, wherein said possible wrapping styles comprises text content wrapping on top, bottom, and right sides of an image.
 14. The method of claim 10, wherein said possible wrapping styles comprises text content wrapping around an image.
 15. The method of claim 6, wherein said wrapping around comprises adjusting margins surrounding one object of content based on a border of another object of content.
 16. The method of claim 5, wherein said automatic content reconfiguration occurs in real time during the placement of the second content in the floating layer.
 17. The method of claim 1 further comprising receiving input to move content in said template page, wherein a display of said page is automatically reformatted to adjust for said content movement.
 18. The method of claim 17, wherein the content movement comprises removing content from said page.
 19. The method of claim 1, wherein said second content occludes other content in said floating layer.
 20. The method of claim 1, wherein the placeholder in-line content is text content in a field and the first content is multimedia content, wherein the placed multimedia content is automatically reformatted to adjust to a characteristic of the field.
 21. The method of claim 1 further comprising: displaying an icon for accessing a set of content libraries; displaying a list of said content libraries in response to receiving a selection of said icon; and receiving a selection of a content library for adding user content to said document.
 22. The method of claim 1, wherein each placeholder content can be visually identified to distinguish said placeholder content from other placeholder content and from user content.
 23. The method of claim 1, wherein said document comprises a set of template pages, wherein each template page comprises a set of fields, wherein receiving a selection of a field selects all content located in said selected field.
 24. The method of claim 23, wherein said selected field is a field in said body layer of the document.
 25. The method of claim 23, wherein said selected field is a field in said floating layer of the document.
 26. The method of claim 23, wherein said selected field is a text field.
 27. A method for defining a template document for use by a user to create a document by adding content to the template document, the method comprising: defining a body layer of the template document for receiving body-layer content that is not occludable by other body layer content; defining a floating layer of the template document for receiving content about which the body-layer content will arrange whenever the floating content is moved to a location of the body-layer content; within the template document, defining a first region that is associated with the body layer, said first region changing appearance when content is dragged over a part of the first region, in order to provide visual feedback that dropping the content in the first region will insert the content into the body layer; and within the template document, defining a second region that is associated with the floating layer, said second region changing appearance when content is dragged over a part of the second region, in order to provide visual feedback that dropping the content in the second region will insert the content into the floating layer.
 28. The method of claim 27, wherein the insertion of content into said floating layer causes content in said body layer to automatically reconfigure.
 29. The method of claim 28, wherein said automatic content reconfiguration comprises wrapping around the content inserted into said floating layer.
 30. The method of claim 28, wherein said automatic content reconfiguration occurs in real time.
 31. The method of claim 27, wherein the content comprises at least one of text and multimedia.
 32. The method of claim 27, wherein the change of appearance comprises highlighting of the region over which the content is dragged.
 33. The method of claim 27, wherein the second region comprises a border of a page of the template document.
 34. A non-transitory computer readable medium storing a computer program which when executed by at least one processor places content in a document created based on a template, said computer program comprising sets of instructions for: receiving a selection of a template page comprising (i) a body layer for holding in-line content and (ii) a floating layer for holding floating content that is moveable to a location of the in-line content so that the in-line content at the location re-arranges around the floating content; adding the template page to the document, wherein the added template page comprises placeholder content in at least one of the body layer and the floating layer; displaying the template page with the placeholder content; in response to movement of a cursor over the placeholder content, displaying a message indicating to a user that the content is placeholder content that is part of the added template page and not content generated by the user.
 35. The non-transitory computer readable medium of claim 34, wherein said placeholder content comprises one of text and multimedia.
 36. The non-transitory computer readable medium of claim 34, wherein the placeholder content is in the body layer of the template page.
 37. The non-transitory computer readable medium of claim 34, wherein the placeholder content is in the floating layer of the template page.
 38. A method for inserting content into a document, said method comprising: displaying a page of the document, the page comprising (i) a first layer containing in-line text content and (ii) a second layer containing floating content; performing a drag operation on the floating content to move the floating content from a first location to a second location over the text content; while the floating content moves over the text content, adjusting the text content to wrap around the floating content in real time, in order to provide feedback regarding positioning of the text content around the floating content; receiving input to drop the floating content at the second location; and inserting the floating content into the floating layer at the second location and wrapping the text content around the floating content at the second location.
 39. The method of claim 38, wherein said second layer comprises a floating layer of the document.
 40. The method of claim 38, wherein said floating content comprises at least one of text and multimedia.
 41. The method of claim 38, wherein said floating content is occludable by other floating content in said second layer.
 42. The method of claim 38, wherein the text content wraps around the floating content in real time such that a user sees the text content in the first layer move in order to determine an optimal location to drop the floating content.
 43. A non-transitory computer readable medium storing a computer program which when executed by at least one processor inserts content into a document, the computer program comprising sets of instructions for: displaying a page of the document, the page comprising (i) a first layer containing in-line text content and (ii) a second layer containing floating content; performing a drag operation on the floating content to move the floating content from a first location to a second location over the text content; while the floating content moves over the text content, adjusting the text content to wrap around the floating content in real time, in order to provide feedback regarding positioning of the text content around the floating content; receiving input to drop the floating content at the second location; and inserting the floating content into the floating layer at the second location and wrapping the text content around the floating content at the second location.
 44. The non-transitory computer readable medium of claim 43, wherein said floating content comprises one of text and multimedia.
 45. The non-transitory computer readable medium of claim 43, wherein said floating content is occludable by other content in said second layer.
 46. The non-transitory computer readable medium of claim 43, wherein the floating content is an image.
 47. The non-transitory computer readable medium of claim 43, wherein the floating content is text.
 48. A non-transitory computer readable medium storing a computer program which when executed by at least one processor places content in a document created based on a template comprising a plurality of template pages, the computer program comprising sets of instructions for: receiving a selection of a template page comprising (i) a body layer for holding in-line content and (ii) a floating layer for holding floating content that is moveable to a location of the in-line content so that the in-line content at the location re-arranges around the floating content, the body layer comprising a first set of fields and the floating layer comprising a second set of fields; adding the template page to the document, wherein the added template page comprises a placeholder in-line content in a first field of the first set of fields of the body layer and a placeholder floating content in a second field of the second set of fields of the floating layer; in response to a first drag-and-drop operation that drags a first content and drops the first content over the first field of the body layer without selecting the placeholder in-line content in the first field, replacing the entire placeholder in-line content in the first field with the first content; and in response to a second drag-and-drop operation that drags a second content and drops the second content over the second field of the floating layer without selecting the placeholder floating content in the second field, replacing the entire placeholder floating content in the second field with the second content.
 49. The non-transitory computer readable medium of claim 48, wherein said first content comprises one of text and multimedia.
 50. The non-transitory computer readable medium of claim 48, wherein said second content comprises one of a text box and multimedia.
 51. The non-transitory computer readable medium of claim 48, wherein the first content comprises text content and the text content wraps around the second content upon placement of the second content in the second layer.
 52. The non-transitory computer readable medium of claim 48, wherein the placeholder in-line content is in a preconfigured field in the body layer and the first content replaces all placeholder content in the preconfigured field upon the placement of the first content in the preconfigured field.
 53. A non-transitory computer readable medium storing a computer program which when executed places content in a document created based on a template, the computer program comprising sets of instructions for: displaying a page of the document comprising body and floating layers for holding content, wherein content in the body layer is in-line content that cannot be occluded by other content in the body or floating layer, while content in the floating layer is content that is occludable by other content in the floating layer, the body layer comprising at least one field that holds in-line text, the field having a particular size; receiving user input to insert an image into the field; inserting the image into the field by replacing said in-line text in the field with the image; and upon replacement of the in-line text with the inserted image, automatically modifying the size of the field to fit the inserted image.
 54. The non-transitory computer readable medium of claim 53 wherein the set of instructions for modifying the size of the field comprises a set of instructions for enlarging the field to accommodate the inserted image.
 55. The non-transitory computer readable medium of claim 53, wherein content in the body layer is arranged around content in the floating layer.
 56. The non-transitory computer readable medium of claim 53, wherein the image is dragged from a media library to the field.
 57. The non-transitory computer readable medium of claim 53, wherein the image is dragged from a location in the document to the field.
 58. The non-transitory computer readable medium of claim 53, wherein the set of instructions for modifying the size of the field to fit the inserted image comprises a set of instructions for modifying a margin of the field.
 59. A method for defining a document template for use by a user to create a document by adding content to the document template, the method comprising: defining a body layer of the document template for receiving content that is not occludable by other body-layer content; defining a floating layer of the document template for receiving floating content about which the body-layer content will arrange whenever the floating content is moved to a location of the body-layer content; associating a border of a page of said document template with the floating layer; and defining a visual indication to provide when content is dragged from a display area outside the document over the border of the page, in order to indicate that dropping the content on the page border will insert the content into the floating layer of the document.
 60. The method of claim 59, wherein said content is for display at a first size while dragged and is for display at a different second size once dropped into the floating layer.
 61. The method of claim 59, wherein the body and floating layers are defined such that when the user drops media content into the floating layer, content in the body layer is automatically reconfigured.
 62. The method of claim 61, wherein said automatic content reconfiguration comprises wrapping around the dropped media content.
 63. The method of claim 61, wherein said automatic content reconfiguration occurs in real time.
 64. The method of claim 59 further comprising defining a media display area for displaying media content for the user to add to at least one of the layers of the template document.
 65. The method of claim 64, wherein the media display area is for displaying thumbnails of images for the user to drag to the page.
 66. The method of claim 65, wherein when the user drags the media content from the media display area to the page, a thumbnail of media content is displayed. 